home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
pc
/
LOGIC Apple II 5.25" Library - DOS Part 3
/
DOS065.dsk
/
CLEAN UP.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
1KB
|
48 lines
10 REM MON GOES HERE
12 DIM S$(200),B$(100)
100 HOME : PRINT "INSERT PFILE DISK AND HIT RETURN"
101 INPUT X$
102 NN = 500
103 LF = 28
105 DIM P$(NN)
110 Z$ = "<CTRL-D>"
111 PRINT Z$;"CATALOG"
112 HOME
120 PRINT Z$;"OPEN PFILE"
130 PRINT Z$;"READ PFILE"
140 FOR E = 0 TO NN
150 INPUT P$(E)
160 NEXT E
170 PRINT Z$;"CLOSE PFILE"
200 REM
202 PRINT "DO YOU WISH TO DELETE ANY ENTRIES (Y/N)": INPUT A$
203 IF A$ = "N" THEN 900
204 IF A$ = "Y" THEN 300
205 GOTO 202
300 PRINT "WHAT # ENTRY DO YOU WISH TO DELETE ": INPUT N:P$(N) = ""
350 PRINT "TO CONTINUE PRESS RETURN - TO END TYPE END": INPUT A$
360 IF A$ = "END" THEN 900
370 GOTO 300
380 GOTO 350
900 REM WRITE TO DISK TWICE
910 PRINT Z$;"CATALOG"
911 HOME
920 PRINT Z$;"OPEN PFILE"
930 PRINT Z$;"WRITE PFILE"
940 FOR E = 0 TO NN
950 PRINT P$(E)
960 NEXT E
970 PRINT Z$;"CLOSE PFILE"
980 PRINT "INSERT BACKUP DISK"
985 PRINT " AND HIT RETURN WHEN READY"
989 INPUT X$
990 PRINT Z$;"CATALOG": HOME
991 PRINT Z$;"OPEN PFILE"
992 PRINT Z$;"WRITE PFILE"
993 FOR E = 0 TO NN
994 PRINT P$(E)
995 NEXT X
996 PRINT Z$;"CLOSE PFILE"
997 PRINT "END OF DISK WRITE ROUTINE"
998 PRINT "THANK YOU"
999 END